package com.ruoyi.food.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;


/**
 * 食物细节
 *
 * @author Administrator
 * @date 2023/03/14
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@TableName("t_food_detail")
public class FoodDetail extends BaseEntity {

    /**
     *
     */
    @TableId
    private Long id;
    /**
     *
     */
    private Long sellerId;
    /**
     *
     */
    private Long foodId;

    /**
     * 类别 0菜品 1套餐
     */
    private Integer category;
    /**
     *
     */
    private String spec;
    /**
     * 菜品价钱
     */
    private BigDecimal price;
    /**
     * 会员价
     */
    private BigDecimal memberPrice;
    /**
     * 微信会员价
     */
    private BigDecimal weixinMemberPrice;
    /**
     * 成本价
     */
    private BigDecimal costPrice;

    /**
     *
     */
    @TableField(exist = false)
    private String foodName;

}
